﻿@model smartcrm.Company
<script src="../../Scripts/company.js"></script>
<form method="post" enctype="multipart/form-data">
<div id="divCompany" class="">
    <table class="tableEdit ">
        <thead>
            <tr>
                <th colspan="2" style="text-align:left;height:30px;">公司资料设置</th>
            </tr>
        </thead>
        <tr>
            <td class="label">公司名称</td>
            <td>@Html.TextBox("CompanyNameOnReport",null, new{@style="width:320px"}) <span class="redStar">*</span> </td>
        </tr>
         <tr>
            <td class="label">地址</td>
            <td>@Html.TextBox("AddressOnReport", null, new { @style = "width:320px" }) <span class="redStar">*</span> </td>
        </tr>
         <tr>
            <td class="label">邮编</td>
            <td>@Html.TextBox("PostcodeOnReport") <span class="redStar">*</span> </td>
        </tr>
         <tr>
            <td class="label">电话/传真</td>
            <td>@Html.TextBox("PhoneFaxOnReport", null, new { @style = "width:320px" }) <span class="redStar">*</span> </td>
        </tr>       
        <tr>
            <td class="label">公司Logo</td>
            <td>
                <img alt="logo" id="companylogo" src="/CompanyLogo/@Model.LogoOnReport" />  
                <br />              
                <input type="file" id="logofile" name="logofile" />
                <br />
                <span style="color:Red; font-weight:bold; padding-left:5px;">公司Logo将显示在对账单中。建议尺寸：120px * 120px</span>            
            </td>
        </tr>
        <!--
          <tr>
            <td>Email（接收报表）</td>
            <td>@Html.TextBox("ReportEmails")</td>
        </tr> 
         <tr>
            <td>自动接收日报表</td>
            <td>@Html.CheckBox("ReceiveDayReport")</td>
        </tr>
         <tr>
            <td>自动接收周报表</td>
            <td>@Html.CheckBox("ReceiveWeekReport")</td>
        </tr>
         <tr>
            <td>自动接收月报表</td>
            <td>@Html.CheckBox("ReceiveMonthReports")</td>
        </tr>
        -->
        
    </table>
</div>

<div style="text-align:right;">  
     <span id="errorMessage" class="errorSpan"></span>    &nbsp;&nbsp;&nbsp;&nbsp;
     <input type="submit" id="btnSave" value="保存" />    
    </div>  
</form>
